package com.joshondesign.sdljava.gfx;

import java.io.File;

/**
 * Created by IntelliJ IDEA.
 * User: josh
 * Date: 9/9/11
 * Time: 11:24 AM
 * To change this template use File | Settings | File Templates.
 */
public class Text extends Node {
    private int x;
    private int y;
    private String text;
    private SFont font;

    public Text(int x, int y, String text) {
        this.x = x;
        this.y = y;
        this.text = text;
        font = new SFont(new File("src/resources/Junction.ttf"));
    }

    @Override
    public void draw(GFX surface) {
        surface.drawString(font,text, x,y);
    }
}
